package com.mohan.dlxj.mapper;

import com.mohan.dlxj.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Description:
 * Version: V1.0
 */
@Mapper
public interface UserMapper {
    Users login(@Param("login_account") String login_account, @Param("new_user_pwd") String new_user_pwd);

    int updatePassword(@Param("login_account") String login_account, @Param("user_pwd") String user_pwd);

    List<Users> findUsers(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    long totalSize();

    void batchUserdel(@Param("ids") Integer[] ids);

    int addUser(Users users);
}
